<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp"%>
<!doctype html>
<html>
<head>
<title>积分兑换现金</title>
</head>
<body ontouchstart>

<header class="contHeader">
    <div class="contOHeader" style="z-index:1000;">
        <h1>积分兑换现金</h1>
        <div class="contOHeadBack"><a href="javascript:history.go(-1);" ><img src="${staticPath}/images/back2.png"></a></div>
        
    </div>
</header>
 <input type="hidden" value="${key }" id="key"/>
 <input type="hidden" value="${points }" id="mypoints"/>
<div class="weui_cell weui_cell_select">
		<div class="weui_cell_bd weui_cell_primary">
			<select class="weui_select" id="listId">
				<option value="0">请选择：</option>
				<c:forEach items="${list}" var="list">
					<option value="${list.id}" less="${list.points}" per="${list.percent}">${list.points}积分以上每100积分可兑换<fmt:formatNumber value="${list.percent/100}" pattern="#,###.##" />元</option>
				</c:forEach>
			</select>
		</div>
	</div>

<div class="weui_cells">
        <div class="weui_cell">
          <div class="weui_cell_bd weui_cell_primary">
            <p style="float:left;padding-right:20px;line-height:40px;">可用积分：${points}</p>
          </div>
        </div>
</div>
<div class="weui_cells weui_cells_form">
      <div class="weui_cell zc1">
        <div class="weui_cell_hd"><label class="weui_label" style="width:100px;color:#333;">兑换积分：</label></div>
        <div class="weui_cell_bd weui_cell_primary">
          <input id='points' class="weui_input" type="number" placeholder="请输入兑换积分">
        </div>
      </div>
      <div class="weui_cell zc1">
        <div class="weui_cell_hd"><label class="weui_label" style="width:100px;color:#333;">支付密码：</label></div>
        <div class="weui_cell_bd weui_cell_primary">
          <input id='payPass' class="weui_input" type="password" placeholder="请输入支付密码">
        </div>
      </div>
</div>
<div class="weui_btn_area">
        <a class="weui_btn weui_btn_primary" href="javascript:submit();" id="showTooltips">确定</a>
      </div>
</body>

<script type="text/javascript" src="${staticPath}/js/app/money/exchange.js"></script>
</html>

